CFLAGS = -Wall

test: test.o random.o

test.o: test.c
	gcc $(CFLAGS) -c test.c -o test.o

random.o: random.c
	gcc $(CFLAGS) -c random.c -o random.o

build-so:
	gcc -shared -fPIC random.c -o librandom.so
	gcc test.c -L ./ -l random -o test

dlopen:
	gcc test_dlopen.c -o test_dlopen -ldl

clean:
	rm -rvf *.o *.so test

